Don't leak match data. (#345107, Christian Weiske)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 16 Jun 2006 17:42:40 +0000 (17:42 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 16 Jun 2006 17:42:40 +0000 (17:42 +0000)
2006-06-16  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Don't
leak match data.  (#345107,  Christian Weiske)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkentrycompletion.c

index 485f50aa3c1849e4533b6f4639307c5050c22f22..61a22abfcad5e765bc2e2483106b963c6db34fbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-06-16  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Don't
+       leak match data.  (#345107,  Christian Weiske)
+
        * gtk/gtkprintunixdialog.c (populate_dialog): Move the conflict
        label out of the button box.  (#339456, Christian Persch)
 
index 485f50aa3c1849e4533b6f4639307c5050c22f22..61a22abfcad5e765bc2e2483106b963c6db34fbe 100644 (file)
@@ -1,5 +1,8 @@
 2006-06-16  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Don't
+       leak match data.  (#345107,  Christian Weiske)
+
        * gtk/gtkprintunixdialog.c (populate_dialog): Move the conflict
        label out of the button box.  (#339456, Christian Persch)
 
index 54644fabe3066ff45af8bcfd3fbdc72c4f58ea9d..34d9bd0998a85d12bfe6cd4f624d9ba1598667e5 100644 (file)
@@ -572,6 +572,9 @@ gtk_entry_completion_finalize (GObject *object)
   if (completion->priv->popup_window)
     gtk_widget_destroy (completion->priv->popup_window);
 
+  if (completion->priv->match_notify)
+    (* completion->priv->match_notify) (completion->priv->match_data);
+
   G_OBJECT_CLASS (gtk_entry_completion_parent_class)->finalize (object);
 }